<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org">
<head th:fragment="head">
	<base th:href="@{/}">
	<meta charset="utf-8">
	<title>新增</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="static/layui/css/layui.css" media="all" />
	<script type="text/javascript" src="static/layui/layui.all.js"></script>
	<script type="text/javascript" src="static/layui/tableSelect.js"></script>
	<script type="text/javascript" src="static/plugin/jquery/jquery-3.2.1.min.js"></script>
</head>
<body class="layui-fluid" th:fragment="body">
<div class="layui-row">
	<div class="layui-col-md12">
		<form class="layui-form" lay-filter="formDemo" id="form" action="" style="padding-top: 20px;">
			<div class="layui-form-item">
				<label class="layui-form-label">最低标准值</label>
				<div class="layui-input-block">
					<input type="text" th:value="${lowest}" name="material" lay-verify="required"  id="material" placeholder="请输入" autocomplete="off" class="layui-input" >
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">增长值</label>
				<div class="layui-input-block">
					<input type="number" th:value="${increase}" min="0" name="cpwy" required  lay-verify="required" placeholder="请输入外验最低库存" autocomplete="off" class="layui-input">
				</div>
			</div>
		</form>
	</div>
</div>
<script type="text/javascript">
	function getFormDataAndValidate(){
		var data = $('#form').serializeArray();
		var obj = new Object();
		$.each(data, function(index, e){
			obj[e.name] = e.value;
		})
		return [true,obj];
	}

</script>
</body>
</html>